ensure that selection stays inside of the picture on creation and on resizing
ensure that selection stays inside of the picture on creation and on resizing
some debug commentaries