fixed issue with images from style where image is a dictionary