updated image build process