For initial discussion see T38371
There is one point in the code where I feel uncomfortable. Image editor uses
PREVIEW type sidebars while tabs are only defined for TOOLS type. I did the easy
thing of adding PREVIEW to tabified sidebars but maybe correct solution is to
switch image editor to TOOLS type?