Reading image from filesystem and caching