Get Residue and image