Removed utils.getScaledDim() and createImagePreviewNode(). Fixes #511.