A LOT of dimension and Coordinate system conversion fixes for UIImage