safe pixel lookup