Added imagick code to create and crop thumbnail