Fixed bug not showing generated images