Applies to issue #221; needs confirmation on big-endian hardware

The color masks for saving 24 and 32 bit images were wrong. Also,
create a 24 bit intermediate surface when there is no per-pixel alpha.
Note: The JPEG save also needs its masks corrected.
Remove unintensional branch