Tools function for processing on Image/Bitmap