重构图片缓存代码

Signed-off-by: allankin <52jinchao@163.com>