http://pastebin.com/wCsFp26Y
Here is my source.
The problem is that the checkcollision works good for the (player) but not with the heroe(the image.)
So when i try to move the image rigth is not moved because i have put this function,and it is like alwasy there is an obstacle.
Anyway see my source and help me to check collisions for the image->heroe.