respect the cache option in args array

use proper key to cache images and don't cache when `$args['cache']` is set to `false`