private boolean process(byte[] data, int w, int h, BaseTask task) { Bitmap img = fastBitmaps.get(); try { Optimizer.loadTo(data, img); } catch (IOException e) { e.printStackTrace(); return false; } Optimizer.blur(img); Bitmap destPreview = fetchChatPreview(); int[] sizes = drawPreview(img, w, h, destPreview, task.isOut()); onImageLoaded(destPreview, sizes[0], sizes[1], task, SIZE_CHAT_PREVIEW); return true; }