Fix image extensions