Change maxSize to local variable

With multi displays, it is useful to retrive it everytime.
Add Actual Size