removes excess images