Using sizeWithAttributes instead of sizeWithFont

Using sizeWithAttributes instead of deprecated sizeWithFont