added html errors, fixed image uploader