Changed How the Canvas is Resized

Implemented a new method of resizing making it much cleaner.