sorting image file