Loading pictures and text files dynamically