update cache constants for images