handle aspectRatio