Fixed preload code
Merge pull request #18 from worr/preload_images

Fixed preload code