added basic logic and added img to index