Fxes image dispose problems.