Basic functions to create element on canvas with synthetic mouse events