Added some checking of sizes on image uploads.