Fix for cached image file issue - needs further dev testing - e.g. can we load resource files