Don't leak in R_FindImageFile if numLayers > 0