org.apache.commons.io.FilenameUtils.getName()
File file = new File("resources/images/", FilenameUtils.getName(image)); //Fix