fixed tagcanvas module to check for undefined in photo length