keeps the proportions when scaling down images to fit the slideshow's size (9b89ff4ed93ffb9de75ee7699769b54f9a047b43)