Position ignored when creating from JSON

Element left and top not included in the JSON. Fixes #46.