aspect_ratio has to be unicode or bytes