lower img size and area treatment to speed up img process