remove unused columns from image