moved image stuff into ImageManager. doesn't work well (barely at all) yet, but wanted to get it separated