add media preview cleanup
support graphics preview