error logging in image pregeneration