use defaultImageFormat as a member