If the images are in the Camera Roll, or in an imported album (not something synced through iTunes or in Photo Stream), then you can copy the pictures off of the iPad by connecting it to a computer with the USB cable.................
On a Mac you can use iPhoto or the Image Capture apps to copy the pictures.
You can do this without unlocking the device, so the restriction code should make no difference.