fix removing extension from filename
Fix makeDirectory
use getCacheBasePath inside getCachePath
make sure all the directories are created with 0755 permission
remove $height cropping for other then profile images