create from base image function added