fixing bugs in build process and thumbnail
merge from master
relative path