PSD: tab/space cleanup and using BLI_testextensie
using IMB_FILE_TYPES_LAST to loop over the IMB_FILE_TYPES

That's more reliable than type->is_a, since some formats may not have an
is_a function.