simplify image setting