Added test case for photo mode

Simple test case for photo mode added to test_wallpaperfm.py
Plus fix for popping from empty list in photo mode