Create /img directory if desn't exists, and set permissions properly.