I took at your original post and the jpeg.

Sorry, I'm still thoroughly confused.

Can you breakdown this down into very small steps? Small steps can then be tackled easily.