improve YKImageCacher

add a way to check whether the downloaded image data is legal image
file