added scale_to_all_sizes method to Image