simple aspect ratio conversion class