fixed offset calculation for absolute images; added data-offset parameter option