Part 1-Keep aspect ratio constant when changing the dimensions of an image