fixed: Try to recache image in case cached texture loading fails

Up till now we didn't handle failed texture loading for cached images. This could occur in cases where the locally cached file is missing (or corrupt) and possibly other scenarios. 
This isn't used outside of the if below.  Keep scope as small as possible.