actually removing extraneous images