First, that was a “script kiddie” request. I’m here to help members learn, not provide free coding. If you want to learn, start with the tutorial linked in my signature and come back with questions. Otherwise, wait for others who may be more amenable to helping a “script kiddie.”
Second, if you want to serve an image from a specific path, you must provide that information in the original URI (or make the missing part fixed, not variable as you have specified). In other words, you can’t get there from here. The tutorial will help you see that.