Added lines at the end to release IplImages