Implementation of PreserveAspectCrop