fixed bug for image upload on editing a badge