fixed bug with option uploading

- hitting add option, then cancel, then add option and uploading image
would break the itemid