Fixed a long image sequence memory error.