Performing transformation operations on images