Refactoring AWT image logic out so that the code won't be platform
specific. Starting on platform specific factory.