Added ajustment of view size based on aspect ratio