Try to set correct linesize