Added check if image is already "dense" and fixed extension skipping

Added check if image is already "dense" (in case the name already ends
with “glue”+ devicePixelRatio + ‘x’), skip image with “no-dense” class
and fixed extension skipping as inArray returns 0 for SVG check, that
was evaluated to false and not skipped.