got some basic functionality working
need to handle having same image in multiple files