Added ability to view pdf pages in img handler.