scaling now provides an image with maximum 500 px and preserves aspect ratio