FIX #19: error codes not set in imageCache when loading images