Output size corrected, paddings fixed