remove hardcoding of image from library and move into test. clean up a bit