TODO To keep shape x and y coords within canvas bounds measure of x or y is outside of canvas and calc diff and adjust