Added support for screenshots in jpg format