[rt #69261] fix incorrect image size and color calculations for rotate()