The start of changing code to uplode images to mysql