fix tiny bugs in gulpfile; add gulp task for imagePerms