I think Kostas and Shaun78 have identified one of the method's obvious main problems.
There may be more problems ( eg the C8 column may be unsuitable ), but we can only work with the information provided.
You are injecting the samples in 100% acetonitrile into a highly aqueous mobile phase. Adjusting your sample solvent to match the mobile phase should be the first step.
Both compounds ( and I'm assuming that you meant 1-methylimidazole ) are relatively soluble in water, and depending on other components present, you should modify the sample solvent and, if necessary, the sample concentration to better reflect the initial mobile phase.
Knowing that some acetonitrile is required for elution, and depending on the characteristics of your C8 column ( which I assume may be a 250mm long column - given your void volume time of 3 minutes at 1 ml/min ), I would start the gradient with 2-5% acetonitrile, provided that the other compounds present don't precipitate.
At the end of the run, allow enough time for the column to equilibrate with the highlu\y-aqueous phase before the next injection ( eg ~ 4 mins for a 250 mm long column )
If these compounds still come out in the void volume, it's time for a different column or major changes to the mobile phase.
Bruce Hamilton