updating picture element to return a boolean