Add image sorting