Build json for image request