Images were getting appended by not removed from procedure to procedure