Lua error in Module:Wp/khw/Image_array at line 60: attempt to perform arithmetic on local 'perrow' (a nil value).