hw7 imageapp partly working