re-factored descriptor parser + detect supported images earlier (inlcuding more performance for free)