removed pre-calculation from spot placement and improved size parsing with support for percentage value