Remove redundant packages from image