code to copy and sort photo stream images