removing modules and images