I've been flashing custom ROMs on my S2 for over a year now and have never erased any internal memory photos, videos or other files. I've done plenty factory reset and cache wipes and as far as I am aware, they only wipe the user data (apps, account settings, etc) without touching the user files...