GRAPHICS: Improve color bit depth conversion

Data is no longer truncated it so should be more accurate. See pull request #486 for more info.