Removing extraneous images