VLBI imaging and optical variability of the BL Lac object OQ 530 (B1418+546)