do not fail when removing images located in non-existing dirs
python 2.5 support