first working version with r specified height/width

other problem due to utf-8