Fix bug for wide images