I\'m working on an image processing app to rotate and image 90 degrees with this function, and could use some help with the logic. Integers i and j are coordinates, height and w