sending your photos to your iphone, tapping and holding on the object, and taping the share option that pops up over the foreground item, then choosing save image. then you can send that new image with the background removed back to your linux system.
How to send and receive image between linux and iphone is left as an exercise for the reader.