fix image scaling
Fix for #21
allow deletion of devices. Closes #20