Fix #3 by compiling preview images within init() on demand