set_pixel was not allowing out-of-order pixel assignments.