style tweaks and remove temp img elements