Fixes strokeRect and fillRect not affected by transform issue