I just learnt “more code, more bugs” at a security seminar, and I'm afraid that's correct. Even though, I had to write some more to include picture uploading and scaling. I'm testing this now.
Check out the link to my friend's pictureblog, “Our endless numbered days”, where I got my inspiration to make these picture-functions