Endpoint to send back an image and set a cookie > 1024