Add (kinda) LIFO queue mode support for image downloading (fix #294)