Debugging cache flag being set
Fixed cache being checked with wrong image