Could you elaborate more on your question?, the original post you link to, is about animations with gganimate, is that your same issue? or you are facing this issue with single images as well?
Could you please make a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.