fix transformation and aspect ratio