Replace the previous "filtering" of rectangles based on luminance, now using a remap palette like the software renderer for better output colors. Various other simplifications regarding to rectangle rendering are included here too.