Refactor Paintroid file extension test.