buffer the last frame's details to perform DISPOSE_BACKGROUND on the image's area, rather than the entire canvas. also fixes transparent backgrounds with animated images Change-Id: I53e4d70c441e1eeb136f1d01e7c88de4f9ecff53