Prepares base image