fixed issue not removing old thumbnail