They will still be stored on the phone, but the gallery app should ignore them if you follow the steps in the thread below.