fixed wrong positioning with scales, introduced class for variablebox