Handle non-local storages in is_image.