Use block variable to set image cache