adding upload image wrapper
enabling phpunit tests