Fix truncate image.