Allow image.save to accept file like object