fix image creation if caching is disabled