Added upload size env var, as well as some sorting fixes in gallery & progress