fix injection of image