add in composer.json
fix bug with undeclared variable for generateSquareThumbnail