safari and mobile fixes, image resizing