How the code works:
-It gets the viewport of the scrolling background and sets it into a dynamic sprite. Then cuts that sprite in 12 pieces (sections). Resizes pieces accordingly by an individual rate for width and height(ratew and rateh) pastes the pieces together on a dynamic sprite and sets that sprite onto an object.