Update POM and fix some bugs in FileSinkImages