fixed error when baking with image present