committing image and file