redesign api for RGB format image