Sample image processing and posting code