Added (broken) saveImage method