fix rendering of saved images