Added auto /img directory creation