Adding conditional to select image