image stuff mostly working