add possibility to specify resolution