added aspect ratio cropping