file cache: fix image handle