#152, corrected problem with updating badge image.