Not clearing prev image when clearing