I'm guessing that the problem is that myCreateImage() isn't a static method.

public static RenderedImage myCreateImage()
{
//... code
}


Then your first method should work, or if you're...