Fix nonchanging preffered size of image widget when using custom bitmap or texture.