drawbox() expects a color specified in RGBA format, while the code was providing a color with the components specified in the same order of the input pixel format. In particular, fix box coloring with AXXX RGB formats.