fixing styles for images and other objects