makes pictureTime AMD compliant
fixes error case
Merge pull request #2 from uniqname/master

makes pictureTime AMD compliant