Removed unused libraries. Added in functionality to remove images when session is ended.