x, y will generate by canvas size dynamically if not pass the value