Fix loading image for ios safari