add image method.