fix correction of img preview aspect ratios