Passing IMAGEIMP var in core dir. Makefile fixes.