Add optional width, height and player fields

Sanitize input