Added abilty to add image path instead of format to get cache path