// Copyright 1999-2019. Plesk International GmbH. All rights reserved.
const loadImage = (src, {
  onSuccess,
  onFailure
}) => {
  const image = new Image();
  image.onload = onSuccess;
  image.onerror = onFailure;
  image.src = src;
};

export { loadImage };