Would be easier to see what's going on if you shared some of the code in your loading and drawing methods ^^
Imgur won't work, it's pretyt much broken for some reason.
I would suggest fetching them from an url, ibb for example (https://nl.imgbb.com/)
Best way is to save it in the OSBot/data folder and try to see if it's there else fetch and save it there
to fetch from a url:
public static BufferedImage getImage(Script script, String url) {
try {
return ImageIO.read(new URL(url));
} catch (IOException e) {
script.log("Failed to load image with url: " + url);
e.printStackTrace();
}
return null;
}
Just do this in your onStart or something and save the image so it can be used by the onPaint