Updates to get redirects to actual images to actually work and changing default output from html to json