Adapted reshape to be able to handle change in zoom