Keep aspect ratio modes

There's a typo: ```calculate_tagret_size``` should be ```calculate_target_size``` emphasis on **target**