fix RGB float to int bug