resize images on send fix

As the TODO states, we should use a more centralized method to get the directory, as we do with  MapFilesProvider.getEnvironmentDirPath(this);