fix some image stuff