Added support for jpg screenshots