BUG: corrected a bug that would call updateImage twice when going to next frame. A console has been added in order to be able to profile performance and try to improve it.