fixed update transaction - remove image and upload a new one in same transaction