Improved ImageResource to actually function and to have a method to
return the resource as a BufferedImage