added a canvas rendering library,simplified the process of getting images by utilizing brackets