Small refactor of the compress_css() and rgb_to_hex() functions.