Update image-gallery-reloaded.php

Not a pretty fix for making the gallery respect custom image ordering, but it works...