reverting image stuff