fixed a bug with image uploader not saving uploaded image id