Image Transformation in 2D