Fixes issue when installing style with preview image during setup

Fixes #1173