Bugfix for uploading image upon editing a badge

Hey, I have fixed this bug for editing badge, where user couldn't change image. Now they can, but with this I think we should think about how to be able to regularly clean unused images that stay in our media files after they get uploaded but unused.