put textfile in its own package and made the imagefile package