object set_image function