Added image dir creation.