removed conversion to jpeg