Proposed changes.

Just some things I did when I was eating lunch. Please review.
Things added:
-Is URL switch. This is handy because you need to remove the spaces for the getimagesize and imagecratefromjpeg functions.
-Removed $image_set. Not needed.
-Simply error checking.
-$_file_location is set to false by default.
-Minor dry changes.