files and extract images