add the util for deal with image