Accurate prediction of molecular properties and drug targets using a self-supervised image representation learning framework