Fixed #7
Added automatic pixel generation