replace base image inline