Adjusting image styles to fix safari