Added attachment functionality to API.
Added tests for image LibraryItem API endpoint.