To obtain a hard-to-guess URL, what you can do is this.
Use the random-generator module of python, via
import random
and get a random long integer, see here, for example via
m = random.getrandbits(60)
You need to store this long integer in the database table where you store the image. When somebody asks for a URL like:
/default/view/985934239847/
You look up 985934239847 in the table, and you show the image.