added get path and some stuff in the imagefile