updating styles for images