image insertion, server side