Add size attribute to image