Change size attribute to height/width attributes