find aspect ratio