adds models image file handling
merges changes made by george to project