adding jpeg fix