Update paint.js

Fixed an orientation bug.