Added a removeImage method.