Added function to the ImageFile.