Code rewrite to work with PHPUnit
read me and destroy image after creation