Is it possible that the problem is due to house.png and tree.png

I have never use png file in java. I know java support gif and jpg file.
Try to use gif files instead!