fixes for img attachment widget