fix image caching