[fixes #40] fix img preview