Added working preview, save crashes it due to incorrect directory location.