add variable resolution for returned image