simplify image restricting considerably