fix performance on mobile for images