<Error>: CGAffineTransformInvert: singular matrix.