Fix for bug #8750: depremul in the image texture code should check