Refactor cache

allow use of 40% available memory
Show photo actions on actionbar