[BUGFIX] Try SVG first when detecting image size