add feature User can buy picture only once. Fix small bug in photosDetailsCtrl