added json and image request