DFGetImageDimensions: Move to platform files