Added blank img if not path is defined, better error handling, a bit, but a hack :P