first try for jpg and pdf support.