Added check to see if a picture is actually available (edit event)