redirect to jpg if appropriate