try to only calculate image dependencies, when necessary
add code to makefile to automatically search for pdf and jpg images