checking if picture exists