Smart ways of image replacing