imagefile -> filepointer or something