Finished photo selector demo with base function