I've tried optiloader before. It is good tool, but it doesn't help in case of bare atmega (without oscillator).
I realized that I can't configure Atmega to internal clock without uploading but I can't upload without set internal clock, looks like magic circle? :))) not at all :)))
Assemble circuit with oscillator (I used 16mhz);
Set board - Atmega 328 on breadboard (8mhz internal clock);
remove oscillator and capacitors and Atmega will work with internal clock, now you can burn it without oscillator.
But I had also another problem, avrdude didn't recognize the Atmega, and with that optiloader I figured out that device code is 0x1E9514 (not as usual 1E950F) so, I changed avrdude config file and burn with oscillator worked ok.