added scaling and flip functionality to the sprite sheet viewer
put all the canvas drawing logic for the SpriteWidget inside the update_canvas method