The previous code would not pad the left side with the left column of pixels but with the top row. Test attached.