Fixed issues with avfoundation or imagepicker resizing