add truncate image methodes