simplify image processing