Scaling picture before cropping functionality