Gray scale conversor and compilation script