imgPosY = 0;
for(int y = top; y < bottom + this.height; y += this.height) {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
mc.entityRenderer.setupOverlayRendering();
drawForSreenShot(y, x);
pixels.clear();
GL11.glReadPixels(0, 0, useWidth, useHeight, GL12.GL_BGRA, GL12.GL_UNSIGNED_INT_8_8_8_8_REV, pixels);
pixels.get(intArray);
mirror(intArray, useWidth, useHeight);
bufferedimage.setRGB(imgPosX, imgPosY, Math.min(useWidth, bufferedimage.getWidth() - imgPosX), Math.min(useHeight, bufferedimage.getHeight() - imgPosY), intArray, 0, useWidth);
imgPosY += useHeight;