adding cache to picture api