Added image support to core.
Fixed image support to actually work and added tests.