More work on legacy mode

Fixed an issue in legacy mode where ItemDetailVeiw icons were not being
  converted to png
Removed some debugging code
Fixed a potential crash when no event listeners existed