ordering pictures, first working version