move get_rgb from runbrick to common