cache image buffer