added image functionality and restructured file directory