Derma Images

Sorry for asking these questions but you are one of the best sources for support.
I am trying to set the background of a DFrame using DImage. but I am putting the image inside my garrysmod file since I am not using a server
for it yet but it keeps coming up as an error.

Code:


local frame = vgui.Create("DFrame")
frame:SetSize( ScrW() * 0.250, ScrH() * 0.250 )
frame:Center()
frame:MakePopup()
frame:SetTitle("")
frame:SetVisible(true)
frame.Paint = function (self, w, h)
	draw.RoundedBox(15,0,0,w,h,Color(38,173,229,255))
end

local bg_img = vgui.Create( "DImage", frame )	-- Add image to Frame
bg_img:SetPos( 0, 0 )	-- Move it into frame
bg_img:SetSize( 496, 286 )	-- Size it to 150x150

-- Set material relative to "garrysmod/materials/"
bg_img:SetImage( "idcard/idcard" )


Images of my problems:

Any help would be welcomed. Btw its for a free addon I am working on

Just use the paint function of the frame you have and draw a textured rectangle.

http://wiki.garrysmod.com/page/surface/DrawTexturedRect