moved dir"
checking width and height
changes to canvas dimensions