The existence of the imagedata file is now checked.