Allow cache img to be disabled

Change-Id: Idbd83f449c0a3265ee9c35b60528a4d1c237c28a

Conflicts:
	core/Makefile