I have added code tags to your post, making it much easier to read. Next time, just highlight your java, and click the 'code' button above, like you wanted to make something bold or italic.
It's kind of hard to answer your question. WHAT is the error you get? Believe it or not, that actually tells you a lot about what the problem is. May I suggest you check out our HowToAskQuestionsOnJavaRanch FAQ?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
You're treating that method as if it were a constructor. You need to treat it as a proper method. So:
Note that this is actually bad design. First of all, you need to create an object to call the method. The method should be static instead, unless you want it to be overridden.
Second, you should never create methods with the same name as constructors / the class. It leads to confusion, and in your case to improper use of the method. I'd call the method loadImage instead, as the method doesn't draw anything - it loads an image from a file.