added position usage into resizeTo. Added default background for resize operations.