manager.js fix firefox issue on opt.img retrieval