adding picture cache config
optimize if in templates