add put method for updating image