removeImage function was unnecessary