checking that pixel will be set within screen