Fixed jpg and jpeg inconsistency