Yes it is above it. The code I posted is the last on the page prior to the html starting.
I can't say why the images uploaded before, the names were not showing up at all in the database so I figured it wasn't working, but when I checked the image folder, after posting here, there were several renamed images, renamed with increment as outlined in the tutorial. But it's not uploading them at all now.
Any other ideas?