check aspect ratio