Added options for width/height and repeat

close #3