comment image upload refactor