BUG Fixes

Fixed Constrain Functions and resizing of wrapper on swaptheimage
function