Bugfix: Wrong parameter passed to the buildFromImage function