Fix for photo function crash - thanks Dan! :)

Signed-off-by: James R T Bossert <jrbosser@gmail.com>