Added a Makefile and fixed duplicate image bug