Use dimensions of ContentEditText when resizing the picture

Fix #1317