Added ScaleToSize for proper resizing