getNextImage() fails to return last frame
Merge remote-tracking branch 'gnebehay/nextimage' into dev