Image not Displaying

BlitzMax Forums/BlitzMax Programming/Image not Displaying

[Code]
File: Main.bmx

Framework Brl.Basic
Import Brl.System
Import Brl.GLMax2D
Import Pub.Libpng

SetMaskColor 255,0,255

Global SCREENWIDTH:Int
Global SCREENHEIGHT:Int
Global SCREENDEPTH:Int
Global SCREENFULL:Int=False

Graphics(320,240,0,60)
SetViewport(32,8,256,224)
SetOrigin(32,8)

Include "player.bmx"
PlayerSetup 0,0

'Main Loop
While Not KeyHit(KEY_ESCAPE)
Cls

PlayerDraw PlayerX,PlayerY

FlushMem
Flip
Wend
End

[/Code]

[Code]

FILE: player.bmx

Global PlayerIdle:Int ; Incbin "gfx/idle.png"

Global PlayerX:Float=0
Global PlayerY:Float=0

Function PlayerSetup(fX,fY)

PlayerIdle = LoadImage("IncBin::gfx/idle.png")

End Function

Function PlayerDraw(fX,fY)

DrawImage PlayerIdle,fX,fY

End Function

[/code]

okay Im getting this error and why??
Unhandled Exception: Attempt to access field or method of NULL object on the DrawImage PlayerIdle,fX,fY

please help...