before imgcap