Doing up-front thumbnail image generation (and adding a command to do it offline)