test conditional img for pdf view