fixed update function for images
Merge pull request #3 from daanvanham/master

fixed update function for images