Fixed issue of image being flipped.