add to_scm_colorformat function
rename to_scm_data_format
add to_scm_data_format_forUGLY
use to_scm_ helper to clean up code