Add tests to ImagePluginTest.php

This is the tests contain like that:

- Call ImagePlugin as inline method

- Call ImagePlugin as convert method

- Parse params when call as inline method

- Parse params when call as convert method
Implements ImagePlugin.

Add inline method and convert method and some functions.
and now, all tests green.