Don't create rects outside canvas