#6 add legends on image export