Implement deleteImage method