solved canvas scaling issue