Image sorting

Allows image sorting on galleries