renderer: swapped order of for comparisons, refs #688

Thanks to this change, image[16] is never called (same reasons as at line 3953)