added options for key and path
fetch medium photos