Use UIImageView shared cache and added a willDismiss method for the delegate