Image sort implemented