Photosnapping code implemented