Uploading images failed

Uploading images failed, cause the upload dir didn't exist. Added an check (when this python file is loaded) if the image upload dir exists if not it is automatically created.