Bug 155426 - filename extension wrong in Latex when image name contains a dot

Only if the completeSuffix is eps or pdf strip it away, otherwise leave it.
Note: the version of Qt used uses the method extension, newer versions use the method completeSuffix