Fixes for build scripts and image drag-n-drop fix from Ivan Mahonin