Writing script to recover nonprofit images