First go at scaling. Works with canvas and image rotation. Bug when switching between image and color borders