Create the grid image directory if it doesnt exist

Previously we tried to copy a file to a directory even if we had no idea
if it existed. When that happened, we would throw an error. This commit
now checks if the directory exists on initialization, and if not,
creates it.