fix for images not being cached