reorganize image cropping/uncropping

split the CanvasImage class into its own file
add simple script to build the dist files