converting all painting to double precision