add php script to arrange photos