Introduce sliding window for inserting the image on the server