move Vips related helper method to the Vips bridge