List<HSSFClientAnchor> list = getAllAnchors(getEscherAggregate(templateSheet));
int i = 0;
if (CollectionUtils.isNotEmpty(orderedPicturesId)) {//just a shitty workaround for anchors without pictures
for (HSSFClientAnchor anchor : list) {
Cell topLeft = getCellFromTemplate(new Cell(anchor.getCol1(), anchor.getRow1()));
anchor.setCol1(topLeft.getCol());
anchor.setRow1(topLeft.getRow());
anchor.setCol2(topLeft.getCol() + anchor.getCol2() - anchor.getCol1());
anchor.setRow2(topLeft.getRow() + anchor.getRow2() - anchor.getRow1());
HSSFPatriarch sheetPatriarch = drawingPatriarchsMap.get(resultSheet);
if (sheetPatriarch != null) {
sheetPatriarch.createPicture(anchor, orderedPicturesId.get(i++));
}