Removed jpeg and gifs to avoid the browser timeout. (gif could be added in the same way as before as gifs can support opacity however I don't think many people will want to use them)