Fixed bug where response was written twice
Added ability to update activity images