adding function to updated the transient bucket id to raw images