updated surface constructor to int convert argument
updated transform.rotate positioning
updated transform rotate/flip to restore context