fixed error where temporary image was not showing up