Unable to delete grid thumbnail image (picture)

Attached is the proposed fix
Merge pull request #4 from davidsoninstitute/patch-1

Unable to delete grid thumbnail image (picture)
Merge branch 'master' of github.com:gjb2048/moodle-courseformat_grid into MOODLE_27