# How to change size of an image in the background of a graph?

I'm trying to put a background image in a graph I've made but I can't figure out how to resize it so it fits the whole background, rather than just the section. The code I have so far is

combinedPlot = Show[linDataPlot, linFitPlot, errorplot, linDataPlot2,
PlotRange -> {{0.8, 2.2}, {40, 280}}, AspectRatio -> 1, Prolog -> Inset[dog]]


which shows

Ideally the image would reach to the frame of the graph. I think I just need to change something in the "Prolog" area of the code in order to get it to scale? And also change the "PlotRange" so it's the same ratio as the image.

However, I tried to do this with the "Raster" command:

combinedPlot = Show[linDataPlot, linFitPlot, errorplot, linDataPlot2,
PlotRange -> {{0.8, 2.2}, {40, 280}}, AspectRatio -> 1,
Prolog -> Raster[Show[dog][[1, 1]], {Scaled[{0, 0}], Scaled[{1, 1}]}]]


But for some reason the image goes really weird and looks like this:

• I don't know what dog is in your example, but look up what data Raster needs (a 2D array of numbers or of RGB triplets). – Szabolcs Aug 9 '18 at 8:01

Plot[Sin[x], {x, 0, 10},
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4147893190383911, "perplexity": 1502.9330437078604}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-39/segments/1568514573011.59/warc/CC-MAIN-20190917020816-20190917042816-00444.warc.gz"}