javafx writableimage resize. Parameters: bimg - the Buffer