Fixed link parsing

-Fixed link parsing
-Fixed crash on image with corrupted color profile
-Fixed crash when lastStatus is null