fixing aspect ratio and ios 7 compatibility