changed rgba32_to routines to support both alpha and non-alpha formats