check if picture is defined