added ability to upload category images. closes #638, closes #532