Fixed image upload bug where previous thumbnail was not deleted when uploading new image.