Fix generation cached images