removes unnecessary images and code