Add queueAllBackgroundImages function