RemoveFile method implementation for images