Added clipping to box function and made strides on supporting clipping rectangle for all sprite drawing