UV imaging in pharmaceutical analysis