Update caching + null pointer in image class