Added sorting options to the image galleries