add image to local logic