fix cache image bug