refactored entree code, deleted img directory