proper offset for last image