Tweaks for upload API. Added a sample image for tests.