Step 4 - With the image layer selected, hold Ctrl and click the rectanlgle layer. A selection should appear. Now go to Select > Modify > Contract and set it to 5 pixels. The selection should get smaller, and you should have something that looks like mine.