Code to popup photos