Fix a bug while the image title is too long.