skeleton code for image-cache