fix RGBA8 and RGBA4 modes